package com.itheima.generator;

import com.itheima.entity.User;
import org.springframework.stereotype.Component;

@Component
public class KeyGenerator {
    public String generate(User user) {
        return user.getId() + "-" + user.getName();
    }
}
